@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700&display=swap");
$body-color: #e6edff; // 浅蓝色背景
$brand-primary: #6065d9;
$brand-light-primary: #17d7fa;
body {
    margin: 0;
    height: 100vh;
    overflow: hidden;
    background-color: $body-color;
    font-family: "Roboto", sans-serif;
    position: relative; // 为了定位背景元素
}

// 添加背景色块
.background-shape {
    position: absolute;
    z-index: -1;
}

.shape-1 {
    width: 40%;
    height: 40%;
    background: #1e90ff; // 深蓝色
    border-radius: 50%;
    top: 30%;
    left: 10%;
}

.shape-2 {
    width: 60%;
    height: 60%;
    background: #4169e1; // 另一种深蓝色
    border-radius: 50%;
    top: 10%;
    right: 10%;
}

.container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    .wrapper {
        margin-top: 5vh;
        padding: 40px;
        background-color: #fff;
        border-radius: 20px;
        width: 350px;
        z-index: 1;
        header {
            margin-bottom: 40px;
            .logo {
                width: 70px;
                height: 70px;
                border-radius: 50px;
                background-color: $brand-primary;
                display: flex;
                justify-content: center;
                align-items: center;
                span {
                    font-size: 18px;
                    color: #fff;
                }
            }
            h1 {
                color: $brand-primary;
                font-size: 35px;
                font-weight: 500;
                margin-bottom: 0;
                margin-top: 40px;
            }
            p {
                color: $brand-primary;
                font-size: 18px;
                font-weight: 300;
                margin: 5px 0 0 0;
            }
        }
        .main-content {
            input {
                border: none;
                display: block;
                width: 100%;
                height: 50px;
                margin: 15px 0;
                font-size: 18px;
                color: #999;
                &::placeholder {
                    color: #999;
                    font-size: 18px;
                    font-weight: 300;
                }
                &:focus {
                    outline: none;
                }
            }
            .line {
                width: 100%;
                height: 2px;
                background-color: #99999955;
            }
            button {
                background: linear-gradient( to right, $brand-primary, $brand-light-primary);
                border: none;
                border-radius: 50px;
                font-size: 18px;
                font-weight: 300;
                color: #fff;
                display: block;
                width: 100px;
                height: 40px;
                margin: 0 auto;
                outline: none;
                cursor: pointer;
            }
        }
        footer {
            display: flex;
            justify-content: space-between;
            align-items: flex-end;
            margin-top: 60px;
            p {
                margin: 0;
                font-weight: 100;
                a {
                    color: $brand-primary;
                    text-decoration: none;
                }
            }
        }
    }
}

// 添加过渡动画样式
.form-fade-enter-active,
.form-fade-leave-active {
    transition: all 0.3s ease;
}

.form-fade-enter-from {
    opacity: 0;
    transform: translateX(30px);
}

.form-fade-leave-to {
    opacity: 0;
    transform: translateX(-30px);
}

.el-row {
    display: flex;
    align-items: center;
}

.el-col {
    display: flex;
    flex-direction: column;
}

.el-input {
    height: 40px;
    width: 100%;
}

// 登录按钮居中
.login-button {
    display: flex;
    justify-content: center;
    .el-button {
        margin: 0 auto;
        width: 100px;
    }
}

// 验证码刷新按钮样式
.captcha-refresh {
    padding: 0;
    margin-top: 5px;
}

// 验证码图片禁用状态样式
.captcha-disabled {
    cursor: not-allowed !important;
    opacity: 0.6;
}

@media (min-width: 320px) and (max-width: 768px) {
    .wrapper {
        margin: 0 10px !important;
        padding: 30px;
        header {
            h1 {
                font-size: 30px;
            }
        }
    }
}